home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / path.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  2.6 KB  |  74 lines

  1. PATH
  2.  
  3. Controls the directory list that the Shell searches to find commands.
  4.  
  5. Format
  6.  
  7. PATH [{<dir>}] [ADD] [SHOW] [RESET] [REMOVE] [QUIET]
  8.  
  9. Template
  10.  
  11. PATH/M,ADD/S,SHOW/S,RESET/S,REMOVE/S,QUIET/S
  12.  
  13. Location
  14.  
  15. Internal
  16.  
  17. PATH lets you see, add to, or change the search path the AmigaDOS follows
  18. when looking for a command or program to execute. When a directory is in the
  19. search path, you do not need to specify the complete path to any command
  20. within that directory. Entering the name alone makes AmigaDOS look through
  21. the directories in the search path until it finds the file.
  22.  
  23. Note:
  24.  
  25. The search path is only relevant when AmigaDOS is searching for a command or
  26. program to execute. Full path specifications are always necessary in
  27. arguments for commands such as COPY and DELETE.
  28.  
  29. Enter the PATH command alone or with the SHOW option to display directory
  30. names in the current search path. Normally, when PATH is displaying the
  31. directory names, a requester appears if a volume that is part of the search
  32. path cannot be found. For example, if you add a floppy disk to the search
  33. path and then remove that disk from the disk drive, a requester asks you to
  34. insert the disk.
  35.  
  36. If you specify the QUIET option, PATH does not display requesters for volumes
  37. that are not currently mounted. If PATH encounters an unmounted volume, it
  38. displays the message device (or volume) is not mounted . The names of any
  39. directories on that volume included in the PATH are not displayed.
  40.  
  41. The ADD option specifies directory to be added to the current PATH. You can
  42. add any number of directories with one PATH ADD command (the ADD keyword is
  43. optional); names of the directories must be separated by at least one space.
  44. When you issue the PATH command, AmigaDOS searches for each of the ADDed
  45. directories.
  46.  
  47. To replace the existing search path with a new one, use PATH RESET followed
  48. by the names of the new directories. The existing search path, except for the
  49. current directory and C:, is erased and the new one is substituted.
  50.  
  51. The REMOVE option eliminates the named directory from the search path.
  52.  
  53. Example:
  54.  
  55. 1> PATH EXTRAS:Tools ADD
  56.  
  57. adds the Tools directory in the Extras drawer to the search path of the
  58. Shell. If the EXTRAS: is not in a disk drive, a requester asks you to insert
  59. it in any drive.
  60.  
  61. If you remove EXTRAS: from the drive and enter:
  62.  
  63. 1> PATH
  64.  
  65. a list of directories in the search path is displayed. A requester asks you
  66. to insert EXTRAS:. If you enter:
  67.  
  68. 1> PATH QUIET
  69.  
  70. the list of directories in the search path is displayed. However, when the
  71. path comes to Extras:Tools, the error message appears in the list.
  72.  
  73. See also: ASSIGN. For more examples using PATH, see Chapter 8.
  74.